<template>
  <div class="banner">
    <van-swipe style="height: 200px" vertical>
        <van-swipe-item v-for="item in arrs" :key="item.id">
           <img :src="$pre + item.img" alt="">
        </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
import { getHomebanner } from "../../../http/http";
export default {
  data() {
    return {
      arrs: [],
    };
  },
  mounted() {
    getHomebanner().then((res) => {
      // console.log(res);
      this.arrs = res.data.list;
    });
  },
};
</script>

<style scoped>
.banner img {
    width: 100%;
    height: 200px;
}
</style>